from PublicFunc.assertion import load_config


class Config:
    def __init__(self, file):
        config_list = load_config(file)
        self.BASIC_URL = config_list['basic_url']
        self.NAME = config_list['user_name']
        self.PASSWORD = config_list['password']

if __name__ == '__main__':
    config = Config('../Config/config.json')
    print(config.BASIC_URL)
    print(config.NAME)
    print(config.PASSWORD)

